package com.shenyi.shop.service;

import com.shenyi.shop.api.IUserCouponService;
import com.shenyi.shop.dao.UserCouponMapper;
import com.shenyi.shop.entity.UserCouponDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author richard.fan
 * @version 1.0
 * @date 2018/11/05
 * @desc 优惠券
 * @see
 * @since 1.0
 */
@Service
public class UserCouponServiceImpl implements IUserCouponService {



    @Autowired
    private UserCouponMapper userCouponMapper;


    @Override
    public UserCouponDO queryObject(Integer id) {
        return userCouponMapper.queryObject(id);
    }

    @Override
    public List<UserCouponDO> queryList(Map<String, Object> map) {
        return userCouponMapper.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return userCouponMapper.queryTotal(map);
    }

    @Override
    public int save(UserCouponDO userCoupon) {
        return userCouponMapper.save(userCoupon);
    }

    @Override
    public int update(UserCouponDO userCoupon) {
        return userCouponMapper.update(userCoupon);
    }

    @Override
    public int delete(Integer id) {
        return userCouponMapper.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return userCouponMapper.deleteBatch(ids);
    }

}
